package com.fuxi.cloud.dyndb.query;

import java.io.Serializable;

/**
 * QueryCondition
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
public class QueryCondition implements Serializable {
    private static final long serialVersionUID = 4740166316629191651L;
    private String field;
    private String type;
    private String rule;
    private String val;

    public QueryCondition() {
    }

    public String getField() {
        return this.field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRule() {
        return this.rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public String getVal() {
        return this.val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String toString() {
        StringBuffer var1 = new StringBuffer();
        if (this.field != null && !"".equals(this.field)) {
            var1.append(this.field).append(" ").append(this.rule).append(" ").append(this.type).append(" ").append(this.val);
            return var1.toString();
        } else {
            return "";
        }
    }
}

